package apiroutes

import (
	"dataaysn/internal/service"

	"github.com/gin-gonic/gin"
)

func RegisterLogMedRoutes(r *gin.Engine, logMedService *service.LogMedService) {
	logMedGroup := r.Group("/api/log-med")
	{
		logMedGroup.POST("", logMedService.CreateLog)
		logMedGroup.GET("/:id", logMedService.GetLogByID)
		logMedGroup.GET("/api-code/:apiCode", logMedService.ListLogsByApiCode)
		logMedGroup.GET("/hospital/:hospitalCode", logMedService.ListLogsByHospital)
		logMedGroup.DELETE("/:id", logMedService.DeleteLog)
	}
}
